for a in range (1,10):

    for b in range (1,a+1):
        print(f"{b}*{a}={a*b}",end = " ")
    print("")


int = [(f"{b}*{a}={b*a}") for a in range (1,10) for b in range (1,a+1)]
print(int)